/**
 * @Description: 高德离线地图
 * @Author: xubaoliang
 * @Date: 2022-01-25 09:19:27
 */
import TileLayer from "ol/layer/Tile";
import {XYZ} from "ol/source";

let AMapLine = {
  initMapLayer: function () {
    let mapLayer = new TileLayer({
      id: 'baseLayer',
      source: new XYZ({
        url: "https://webrd01.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=7&x={x}&y={y}&z={z}",
        crossOrigin: 'anonymous',
      })
    });
    return mapLayer;
  }
}

export default AMapLine;
